The default WP_Query sets 'post_status'=>'published', but attachments default to 'post_status'=>'inherit' so you will need to set the status to 'inherit' or 'any'. 'any' - retrieves any type except revisions and types with 'exclude_from_search' set to true. post_status (string / array) - use post status.